#pragma once

#include <stddef.h>
#include <stdint.h>

typedef enum {
    COLOR_RED = 0,
    COLOR_GREEN,
    COLOR_BLUE,
    COLOR_YELLOW,
}color_e;

typedef enum {
    LED_STA_CONST = 0,
    LED_STA_BLINK,
    LED_DYNAMIC_BLINK,
}state_e;

void ws2812_test();
void ws2812_init();

void led_set(color_e c, state_e state);
void led_set_color(color_e color);
void led_set_color_raw(uint8_t color[3]);
void led_set_blink_event(color_e c, uint32_t blink_cnt);